<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewEditorialTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewEditorialLabel_ediId}"/>
                    <h:outputText value="#{editorialController.selected.ediId}" title="#{bundle.ViewEditorialTitle_ediId}"/>
                    <h:outputText value="#{bundle.ViewEditorialLabel_ediNombre}"/>
                    <h:outputText value="#{editorialController.selected.ediNombre}" title="#{bundle.ViewEditorialTitle_ediNombre}"/>
                    <h:outputText value="#{bundle.ViewEditorialLabel_ediDireccion}"/>
                    <h:outputText value="#{editorialController.selected.ediDireccion}" title="#{bundle.ViewEditorialTitle_ediDireccion}"/>
                    <h:outputText value="#{bundle.ViewEditorialLabel_ediCorreo}"/>
                    <h:outputText value="#{editorialController.selected.ediCorreo}" title="#{bundle.ViewEditorialTitle_ediCorreo}"/>
                    <h:outputText value="#{bundle.ViewEditorialLabel_ediTelefono}"/>
                    <h:outputText value="#{editorialController.selected.ediTelefono}" title="#{bundle.ViewEditorialTitle_ediTelefono}"/>
                    <h:outputText value="#{bundle.ViewEditorialLabel_ediDescripcion}"/>
                    <h:outputText value="#{editorialController.selected.ediDescripcion}" title="#{bundle.ViewEditorialTitle_ediDescripcion}"/>
                    <h:outputText value="#{bundle.ViewEditorialLabel_ediEstado}"/>
                    <h:outputText value="#{editorialController.selected.ediEstado}" title="#{bundle.ViewEditorialTitle_ediEstado}"/>
                    <h:outputText value="#{bundle.ViewEditorialLabel_ediIdPais}"/>
                    <h:outputText value="#{editorialController.selected.ediIdPais}" title="#{bundle.ViewEditorialTitle_ediIdPais}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{editorialController.destroyAndView}" value="#{bundle.ViewEditorialDestroyLink}"/>
                <br />
                <br />
                <h:commandLink action="Edit" value="#{bundle.ViewEditorialEditLink}"/>
                <br />
                <h:commandLink action="#{editorialController.prepareCreate}" value="#{bundle.ViewEditorialCreateLink}" />
                <br />
                <h:commandLink action="#{editorialController.prepareList}" value="#{bundle.ViewEditorialShowAllLink}"/>
                <br />
                <br />
                <h:commandLink value="#{bundle.ViewEditorialIndexLink}" action="/index" immediate="true" />

            </h:form>
        </ui:define>
    </ui:composition>

</html>
